//
//  Extensions.swift
//  ReadHub
//
//  Created by testypp on 2018/1/10.
//  Copyright © 2018年 longyiqun. All rights reserved.
//

import Foundation
import UIKit

extension UIView {
	internal func fillSuperview() {
		guard let superview = superview else { return }
		
		self.topAnchor.constraint(equalTo: superview.topAnchor).isActive = true
		self.bottomAnchor.constraint(equalTo: superview.bottomAnchor).isActive = true
		self.leadingAnchor.constraint(equalTo: superview.leadingAnchor).isActive = true
		self.trailingAnchor.constraint(equalTo: superview.trailingAnchor).isActive = true
	}
}
